package com.server.rule.service;

import com.server.rule.protocolInfo.Message;

/**
 * Description: This is a sample class.
 * @Author Simon
 */
public class HttpRuleService implements RuleService{

    @Override
    public void ParseRuleService(Message<?> message) {
        @SuppressWarnings("unchecked")
        Message<String> HttpProtocol = (Message<String>) message;
        String data = (String) message.getData();
        System.out.println(data);
        System.out.println(message.getProtocolHeader().getDestinationIP());
        System.out.println(message.getProtocolHeader().getDestinationPort());
    }

}
